xen/arm: split the init_xen_time() in 2 parts
authorOleksandr Tyshchenko <oleksandr.tyshchenko@globallogic.com>
Wed, 28 Jan 2015 10:54:41 +0000 (12:54 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 28 Jan 2015 13:10:26 +0000 (13:10 +0000)
commit57255adfe196780c945abafd15959a1c33f13e41
tree55ae9acd97bf823180c80cd8452b85b768c93bb0
parent8e906a2a18afd22891bec62c85c0471e159f5fd4
xen/arm: split the init_xen_time() in 2 parts

Create preinit_xen_time() and move to it minimum required
subset of operations needed to properly initialized
cpu_khz and boot_count vars. This is allow us to use udelay()
immediately after the call.

Signed-off-by: Oleksandr Tyshchenko <oleksandr.tyshchenko@globallogic.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/setup.c
xen/arch/arm/time.c
xen/include/xen/time.h